<!--
 * @Author: your name
 * @Date: 2022-02-23 09:28:16
 * @LastEditTime: 2022-02-23 09:40:51
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \day03\1-display.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 普遍选择器、通配符选择器
        style 1000
        id 100 
        class 10
        标签 1
        通配符0 */
        *{
            margin: 0px;
        }
        .cube1{
            width: 100px;
            height: 100px;
            background-color: pink;
            margin: 10px;
            /* 块级转换为行内元素 */
            display: inline;
        }
        .cube{
            width: 100px;
            height: 100px;
            margin: 10px;
            background-color: blue;
           /*  display: block; */
            /* 行内元素转换为块级元素 */
        }
        .cube2{
            width: 100px;
            height: 100px;
            background-color: red;
            margin: 10px;
            /* 将块级元素转换为行内块元素 */
            display: inline-block;
        }
    </style>
</head>
<body>
    <div class="cube1">你好！！！</div>
    <span class="cube">我是行内元素</span>
    <div class="cube2">我是行内块级元素</div>
</body>
</html>